﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ams/Ams.master" AutoEventWireup="true" CodeFile="PersonalInfo.aspx.cs" Inherits="pim_PersonalInfo" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="grid_16" id="content" >
    <!--  TITLE START  --> 
    <div class="grid_9" dir="rtl">
   
                                                              

                                                        
    </div>
    <!--RIGHT TEXT/CALENDAR-->
   
    <!--RIGHT TEXT/CALENDAR END-->
    <div class="clear">
    </div>
    <br />
    <!--  TITLE END  -->    
    <!-- #PORTLETS START -->
    <div id="portlets">
   <div class="portlet">
        <div class="content">
        <table width="100%">
        <tr>
        <td width="20%" style="width: 25%"><asp:Image runat="server" onchange="if (confirm('Upload ' + this.value + '?')) this.form.submit();"
                          ImageUrl="~/pim/images/no-user-picture-set.png" ID="photo" Width="130px" Height="156px"></asp:Image>
        </td>
        <td><asp:Label ID="lb_titulo_nombre" runat="server" Text="Label" Font-Size="Large" ForeColor="#000099"></asp:Label> 
          </td>
        <td width="25">
              <asp:Image runat="server"  
                      ImageUrl="~/pim/images/icon_nologo.png" ID="logo" Width="236px" 
                  Height="156px"></asp:Image>

                                                
                
        </td>
        </tr>
        </table>
                  
                  
                                              
</div>
    <div class="clear"></div>
  <br />
    <!--THIS IS A WIDE PORTLET-->
    <div class="portlet">
        <div class="portlet-header fixed">
                 <img src="images/icons/user.gif" width="16" height="16" alt="Employement" /> Personal Detail<asp:Label 
                     ID="lb_tabid" runat="server" Text="0" Visible="False" ></asp:Label>
&nbsp;<asp:Label ID="alert" runat="server" Visible="False" Width="385px"></asp:Label>
                
</div>
<div class="portlet-content nopadding">
                  <table width="100%" cellpadding="0" cellspacing="0"  summary="Employee Pay Sheet">
                      <tbody>
                          <tr>
                              <td >
                                  <table width="70%" align="center">
                                      <tr>
                                          <td>
                                              <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="4"  
                                        Width="886px">
                                                  <cc1:TabPanel runat="server" HeaderText="Personal Info" ID="TabPanel1" >
                                        <HeaderTemplate><asp:Label ID="tab_personal" CssClass="tip" runat="server" Visible="false">&nbsp;&nbsp;</asp:Label>Personal Info</HeaderTemplate>
                                            
<ContentTemplate> 
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            
                                            <div class="column" id="Div1"></div><div class="clear"></div><div class="portlet"><div class="portlet-header fixed"><img alt="Contact Detail" height="16" src="images/icons/user.gif" width="16" />Personal Information<asp:Label 
                                                ID="lb_emp_id" runat="server" Text="0"></asp:Label><asp:Label ID="lb_person_id" runat="server" Text="0" Visible="False"></asp:Label></div><div class="portlet-content nopadding"><table  width="100%" 
                                                        
                                                        
                                                    style="text-indent: 5px; line-height: 40px; font-size: 11px; border-top-style: solid; border-top-width: 1px; border-top-color: #C0C0C0;"><tbody><tr><td  colspan="6" height="30" valign="middle"><asp:Label ID="lb_error_personal" runat="server" CssClass="lberror" 
                                                        Text="Label" Visible="False"></asp:Label></td></tr><tr><td style="width: 97px"><asp:Label ID="lb_nombre_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>First Name</td><td style="width: 98px">
                                                            <asp:TextBox ID="tb_nombre" runat="server" Width="150px" TabIndex="1"></asp:TextBox></td><td style="width: 99px">Middle Name</td><td style="width: 95px">
                                                        <asp:TextBox ID="tb_nombre2" runat="server" Width="150px" TabIndex="2"></asp:TextBox></td><td style="width: 100px"><asp:Label ID="lb_apellido_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Last Name 1</td><td><asp:TextBox ID="tb_apellido" 
                                                                        runat="server" Width="150px" TabIndex="2"></asp:TextBox></td></tr><tr><td style="width: 97px">Last Name 2</td><td style="width: 98px"><asp:TextBox ID="tb_apellido2" runat="server" Enabled="False" Width="150px" 
                                                                    TabIndex="3"></asp:TextBox></td><td style="width: 99px"><asp:Label ID="lb_apellidocasada_error" runat="server" CssClass="lberror" 
                                                                Text="*" Visible="False"></asp:Label>Married Name</td><td style="width: 95px"><asp:TextBox ID="tb_apellidocasada" runat="server" Enabled="False" 
                                                                Width="150px" TabIndex="4"></asp:TextBox></td><td style="width: 100px"><asp:Label ID="lb_gender_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Gender</td><td><asp:DropDownList ID="ddl_genero" runat="server" 
                                                                OnSelectedIndexChanged="ddl_genero_SelectedIndexChanged" Width="155px" 
                                                                        TabIndex="5" CssClass="floatLeft"><asp:ListItem Value="Select One">Select One</asp:ListItem><asp:ListItem Value="M">Male</asp:ListItem><asp:ListItem Value="F">Female</asp:ListItem></asp:DropDownList></td></tr><tr><td style="width: 97px" ><asp:Label ID="lb_marital_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Marital Status</td><td style="width: 98px"><asp:DropDownList ID="ddl_estadocivil" runat="server" Width="155px" 
                                                                        TabIndex="6" CssClass="floatLeft"><asp:ListItem Value="S">Select One</asp:ListItem><asp:ListItem Value="MARRIED">Married</asp:ListItem><asp:ListItem Value="SINGLE">Single</asp:ListItem></asp:DropDownList></td><td style="width: 99px">
                                                            <asp:Label ID="lb_fecha_error" runat="server" CssClass="floatleft" 
                                                                ForeColor="#CC3300" Text="!!"  Visible="False" ></asp:Label>
                                                            Date of Birth</td><td colspan="3"><asp:DropDownList ID="ddl_mes" runat="server" Width="120px" TabIndex="7" 
                                                                    CssClass="floatLeft"><asp:ListItem Value="0">Select month</asp:ListItem><asp:ListItem Value="1">January</asp:ListItem><asp:ListItem Value="2">Febrary</asp:ListItem><asp:ListItem Value="3">March</asp:ListItem><asp:ListItem Value="4">April</asp:ListItem><asp:ListItem Value="5">May</asp:ListItem><asp:ListItem Value="6">June</asp:ListItem><asp:ListItem Value="7">July</asp:ListItem><asp:ListItem Value="8">August</asp:ListItem><asp:ListItem Value="9">September</asp:ListItem><asp:ListItem Value="10">October</asp:ListItem><asp:ListItem Value="11">November</asp:ListItem><asp:ListItem Value="12">December</asp:ListItem></asp:DropDownList><asp:DropDownList ID="ddl_dia" runat="server" Width="90px" TabIndex="8" 
                                                                    CssClass="floatLeft"><asp:ListItem Value="0"> Select day</asp:ListItem><asp:ListItem>1</asp:ListItem><asp:ListItem>2</asp:ListItem><asp:ListItem>3</asp:ListItem><asp:ListItem>4</asp:ListItem><asp:ListItem>5</asp:ListItem><asp:ListItem>6</asp:ListItem><asp:ListItem>7</asp:ListItem><asp:ListItem>8</asp:ListItem><asp:ListItem>9</asp:ListItem><asp:ListItem>10</asp:ListItem><asp:ListItem>11</asp:ListItem><asp:ListItem>12</asp:ListItem><asp:ListItem>13</asp:ListItem><asp:ListItem>14</asp:ListItem><asp:ListItem>15</asp:ListItem><asp:ListItem>16</asp:ListItem><asp:ListItem>17</asp:ListItem><asp:ListItem>18</asp:ListItem><asp:ListItem>19</asp:ListItem><asp:ListItem>20</asp:ListItem><asp:ListItem>21</asp:ListItem><asp:ListItem>22</asp:ListItem><asp:ListItem>23</asp:ListItem><asp:ListItem>24</asp:ListItem><asp:ListItem>25</asp:ListItem><asp:ListItem>26</asp:ListItem><asp:ListItem>27</asp:ListItem><asp:ListItem>28</asp:ListItem><asp:ListItem>29</asp:ListItem><asp:ListItem>30</asp:ListItem><asp:ListItem>31</asp:ListItem></asp:DropDownList><asp:DropDownList ID="ddl_anio" runat="server" Width="90px" TabIndex="9" 
                                                                    CssClass="floatLeft"></asp:DropDownList><br /></td></tr><tr><td style="width: 97px">Address 1</td><td colspan="5"><asp:TextBox ID="tb_add1" 
                                                                runat="server" Width="475px" TabIndex="10"></asp:TextBox></td></tr><tr><td style="width: 97px">Address 2</td><td colspan="5"><asp:TextBox ID="tb_add2" 
                                                                    runat="server" Width="475px" TabIndex="11"></asp:TextBox></td></tr><tr style="line-height: 30px"><td style="width: 97px"  valign="top"><asp:Label ID="Label8" runat="server" Text="City"></asp:Label></td><td style="width: 98px"><asp:TextBox ID="tb_city" runat="server" Width="150px" TabIndex="12"></asp:TextBox></td><td style="width: 99px"><asp:Label ID="lb_state" runat="server"></asp:Label></td><td style="width: 95px"><asp:TextBox ID="tb_state" runat="server" MaxLength="2" 
                                                            Width="150px" TabIndex="13"></asp:TextBox></td><td style="width: 100px"><asp:Label ID="lb_zipcode" runat="server"></asp:Label></td><td><asp:TextBox ID="tb_zip" runat="server" Width="150px" TabIndex="14"></asp:TextBox></td></tr><tr style="border-color: #FFFFFF; border-width: none; border-style: none; line-height: 15px;" 
                                                                valign="top"><td style="width: 97px" valign="top">&nbsp;</td><td style="width: 98px">&nbsp;</td><td style="width: 99px">&nbsp;</td><td style="width: 95px">&nbsp;</td><td style="width: 100px">&nbsp;</td><td><asp:RegularExpressionValidator ID="rg_zip" runat="server" 
                                                                        ControlToValidate="tb_zip" CssClass="lberror" ErrorMessage="Invalid" 
                                                                        ToolTip="Invalid" ValidationExpression="\d{5}(-\d{4})?" Display="Dynamic"></asp:RegularExpressionValidator></td></tr><tr><td style="width: 97px">Country</td><td style="width: 98px">
                                                        <asp:DropDownList ID="ddl_country" runat="server" Width="155px" 
                                                                onselectedindexchanged="ddl_country_SelectedIndexChanged" 
                                                                AutoPostBack="True" TabIndex="15" CssClass="floatLeft" Enabled="False"><asp:ListItem Value="0">Select One</asp:ListItem></asp:DropDownList></td><td style="width: 99px"><asp:Label ID="lb_hometel_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Home Tel</td><td style="width: 95px"><asp:TextBox ID="tb_tel" runat="server" Width="150px" TabIndex="16"></asp:TextBox></td><td style="width: 100px"><asp:Label ID="lb_cel_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Mobile</td><td><asp:TextBox ID="tb_celular" 
                                                                        runat="server" Width="150px" TabIndex="17"></asp:TextBox></td></tr><tr><td style="width: 97px">Work Email</td><td colspan="5"><asp:TextBox ID="tb_email" runat="server" Width="300px" TabIndex="18"></asp:TextBox><asp:RegularExpressionValidator ID="emailValidator" runat="server" 
                                                                ControlToValidate="tb_email" CssClass="lberror" Display="Dynamic" 
                                                                ErrorMessage="Invalid Email" Font-Italic="True" Font-Names="Arial Narrow" 
                                                                Font-Size="Small" 
                                                                
                                                            ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"></asp:RegularExpressionValidator></td></tr><tr><td style="width: 97px"><asp:Label ID="lb_peremail_error" runat="server" CssClass="lberror" Text="*" 
                                                                        Visible="False"></asp:Label>Personal Email</td><td colspan="5"><asp:TextBox ID="tb_personalemail" runat="server" Width="300px" TabIndex="19"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                                                                        ControlToValidate="tb_personalemail" CssClass="lberror" Display="Dynamic" 
                                                                        ErrorMessage="Invalid Email" Font-Italic="True" Font-Names="Arial Narrow" 
                                                                        Font-Size="Small" 
                                                                        ValidationExpression="^[\w\.\-]+@[a-zA-Z0-9\-]+(\.[a-zA-Z0-9\-]{1,})*(\.[a-zA-Z]{2,3}){1,2}$"></asp:RegularExpressionValidator></td></tr><tr><td style="width: 97px"></td><td colspan="2">&nbsp;</td><td style="width: 95px">&nbsp;</td><td style="width: 100px">&nbsp;</td><td>&nbsp;<asp:Label ID="lb_contactid_1" runat="server" Text="0" Visible="False"></asp:Label></td></tr><tr><td colspan="4"><asp:LinkButton ID="bt_save_personal" runat="server"  OnClick="Button1_Click" 
                                                                CssClass="button_ok" TabIndex="70" ><span>Next</span></asp:LinkButton><asp:LinkButton ID="bt_edit_personal" runat="server" Onclick="bt_edit_Click"  
                                                                CssClass="button_edit" TabIndex="71" ><span>Edit</span></asp:LinkButton><asp:LinkButton ID="bt_cancel_personal" runat="server"    OnClick="bt_cancel_Click" 
                                                                CssClass="button_cancel" TabIndex="72" ><span>Cancel</span> </asp:LinkButton></td><td style="width: 100px">&nbsp;</td><td>&nbsp;</td></tr></tbody></table></div></div></ContentTemplate></cc1:TabPanel>
                                                  <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Affiliation info">
                                            <HeaderTemplate><asp:Label ID="tab_afi" CssClass="tip" runat="server" Visible="false">&nbsp;&nbsp;</asp:Label>Affiliation info</HeaderTemplate>
                                            
<ContentTemplate><div class="column" id="left"></div><div class="clear"></div><div class="portlet"><div class="portlet-header fixed"><img alt="Contact Detail" height="16" src="images/icons/user.gif" width="16" />Affilliation Information</div><div class="portlet-content nopadding"><table width="100%" cellpadding="0" cellspacing="0" id="Table1" summary="Contact Information"><tbody><tr align="left"><td><table width="100%" style="text-indent: 5px; line-height: 40px;"><tbody><tr><td  colspan="4" height="30" valign="middle"><asp:Label ID="lb_error_contact" runat="server" CssClass="lberror" Text="Label" 
                                                    Visible="False"></asp:Label></td></tr><tr align="left"><td bgcolor="#CC3300" style="width: 88px"><asp:Label ID="lb_id_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>ID Number</td><td style="width: 236px"><asp:TextBox ID="tb_id" runat="server" Width="200px" TabIndex="20"></asp:TextBox></td><td style="width: 104px"><asp:Label ID="lb_type_id" runat="server" Text="Type ID"></asp:Label></td><td ><asp:DropDownList ID="ddl_type_id" runat="server" Width="200px" TabIndex="21" 
                                                            CssClass="floatLeft"></asp:DropDownList></td></tr><tr><td bgcolor="#CC3300" style="width: 88px"><asp:Label ID="lb_nit" runat="server" Text="lb_nit"></asp:Label></td><td style="width: 236px"><asp:TextBox ID="tb_nit" runat="server" Width="200px" TabIndex="22"></asp:TextBox></td><td style="width: 104px">IGSS</td><td ><asp:TextBox ID="tb_igss" runat="server" Width="195px" TabIndex="23"></asp:TextBox></td></tr><tr><td bgcolor="#CC3300" style="width: 88px">Irtra</td><td style="width: 236px"><asp:TextBox ID="tb_irtra" runat="server" Enabled="False" Width="200px">24</asp:TextBox></td><td style="width: 104px">&nbsp;</td><td>&nbsp;</td></tr><tr><td colspan="4"><asp:LinkButton ID="bt_save_affiliation" runat="server" class="button_ok" 
                                                                onclick="bt_save_affiliation_Click"  
                                                                CssClass="button_ok" TabIndex="73" ><span>Next</span></asp:LinkButton><asp:LinkButton ID="bt_edit_affiliation" runat="server" class="button_ok" 
                                                                onclick="bt_edit_Click"  CssClass="button_edit" TabIndex="74"><span>Edit</span></asp:LinkButton><asp:LinkButton ID="bt_cancel_affi" runat="server" class="button_notok" 
                                                                onclick="bt_cancel_Click" CssClass="button_cancel" TabIndex="75" ><span>Cancel</span></asp:LinkButton></td></tr></tbody></table></td></tr></tbody></table></div></div></ContentTemplate></cc1:TabPanel>
                                                  <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="Emergency Contacts">
                                            <HeaderTemplate><asp:Label ID="tab_emer" CssClass="tip" runat="server" Visible="false">&nbsp;&nbsp;</asp:Label>Emergency Contacts</HeaderTemplate>
                                            
<ContentTemplate><div class="column" id="left"></div><div class="clear"></div><div class="portlet"><div class="portlet-header fixed"><img alt="Emergency Contacts" height="16" src="images/icons/user.gif" 
        width="16" />Emergency Contacts</div><div class="portlet-content nopadding"><table width="100%" cellpadding="0" cellspacing="0" id="Table2" summary="Energency Contacts"><tbody><tr align="left"><td ><table  width="100%" style="text-indent: 5px; line-height: 40px;"><tbody><tr align="left"><td  colspan="4" height="30" valign="middle"><asp:Label ID="lb_error_emergency" runat="server" CssClass="lberror" 
                                                        Text="Label" Visible="False"></asp:Label></td></tr><tr align="left"><td colspan="4" height="30" valign="middle">EMERGENCY CONTACT 1</td></tr><tr><td align="left" style="width: 128px"><asp:Label ID="lb_nameemer_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Name</td><td style="width: 270px"><asp:TextBox ID="tb_emename_1" runat="server" 
                                                                    Width="200px" TabIndex="30"></asp:TextBox></td><td style="width: 183px; text-align: left;"><asp:Label ID="lb_releme_error" runat="server" CssClass="lberror" Text="*" 
                                                                    Visible="False"></asp:Label>Relationship</td><td><asp:TextBox ID="tb_emerelacion_1" runat="server" 
                                                                    Width="200px" TabIndex="31"></asp:TextBox></td></tr><tr><td align="left" style="width: 128px"><asp:Label ID="lb_teleme_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Home Tel</td><td style="width: 270px"><asp:TextBox ID="tb_emetel_1" runat="server" Width="200px" TabIndex="32"></asp:TextBox></td><td style="width: 183px">Mobile Tel</td><td><asp:TextBox ID="tb_emecel_1" runat="server" Enabled="False" Width="200px" 
                                                                TabIndex="33"></asp:TextBox></td></tr><tr align="left"><td colspan="4" height="30" valign="middle">EMERGENCY CONTACT 2</td></tr><tr><td align="left" style="width: 128px">Name</td><td style="width: 270px"><asp:TextBox ID="tb_emename_2" runat="server" Width="200px" TabIndex="34"></asp:TextBox></td><td style="width: 183px; text-align: left">Relationship</td><td><asp:TextBox ID="tb_emerelacion_2" runat="server" Width="200px" TabIndex="35"></asp:TextBox></td></tr><tr><td align="left" style="width: 128px">Home Tel</td><td style="width: 270px"><asp:TextBox ID="tb_emetel_3" runat="server" Width="200px" TabIndex="35"></asp:TextBox></td><td style="width: 183px; text-align: left">Mobile Tel</td><td><asp:TextBox ID="tb_emecel_2" runat="server" Enabled="False" Width="200px" 
                                                                TabIndex="36"></asp:TextBox></td></tr><tr><td align="left" style="width: 128px">&nbsp;</td><td style="width: 270px">&nbsp;</td><td style="width: 183px; text-align: left">&nbsp;</td><td><asp:Label ID="lb_emergency_id_2" runat="server" Text="0" Visible="False"></asp:Label><asp:Label ID="lb_emergency_id_1" runat="server" Text="0" Visible="False"></asp:Label></td></tr></tbody></table></td></tr><tr><td><asp:LinkButton ID="bt_save_emergency" runat="server" class="button_ok" 
                                                            onclick="bt_save_emergency_Click" CssClass="button_ok" TabIndex="76"><span>Next</span></asp:LinkButton><asp:LinkButton ID="bt_edit_emer" runat="server" class="button_ok" 
                                                            onclick="bt_edit_Click" CssClass="button_edit" TabIndex="77" ><span>Edit</span></asp:LinkButton><asp:LinkButton ID="bt_cancel_emergency" runat="server" class="button_notok" 
                                                            onclick="bt_cancel_Click" CssClass="button_cancel" TabIndex="78"  ><span>Cancel</span></asp:LinkButton></td></tr></td></tr></td></tbody></table></div></div></ContentTemplate></cc1:TabPanel>
                                                  <cc1:TabPanel ID="TabPanel4" runat="server" HeaderText="Job Position">
                                            <HeaderTemplate><asp:Label ID="tab_job" CssClass="tip" runat="server" Visible="false">&nbsp;&nbsp;</asp:Label>Job Position</HeaderTemplate>
                                            
<ContentTemplate><div class="clear"></div><div class="portlet" ><div class="portlet-header fixed"><img alt="Job Position" height="16" src="images/icons/user.gif" width="16" />Job Position </div><div class="portlet-content nopadding"><table width="100%" cellpadding="0" cellspacing="0" id="Table3" summary="Job Position"><tbody><tr><td ><table  width="100%" style="text-indent: 5px; line-height: 40px;"><tbody><tr><td  colspan="4" 
                                                            height="30"><asp:Label ID="lb_error_job" runat="server" CssClass="lberror" Text="Label" 
                                                        Visible="False"></asp:Label></td></tr><tr align="left"><td valign="top" style="width: 123px"><asp:Label ID="lb_comp_error" 
                                                            runat="server" CssClass="lberror" Text="*" Visible="False"></asp:Label>Company</td><td style="width: 250px">
            <asp:DropDownList ID="ddl_company" runat="server" 
                                                        
                onselectedindexchanged="ddl_company_SelectedIndexChanged" CssClass="floatLeft" 
                                                            AutoPostBack="True" 
                Width="200px" TabIndex="40" Enabled="False"><asp:ListItem>Select One</asp:ListItem></asp:DropDownList></td><td><asp:Label ID="lb_acc_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Account</td><td><asp:DropDownList ID="ddl_cuenta" runat="server" 
                                                        onselectedindexchanged="ddl_cuenta_SelectedIndexChanged" AutoPostBack="True" 
                                                                Width="200px" TabIndex="41" CssClass="floatLeft"><asp:ListItem>Select One</asp:ListItem></asp:DropDownList></td></tr><tr align="left"><td><asp:Label ID="lb_jobtitle_error" runat="server" CssClass="lberror" Text="*" 
                                                            Visible="False"></asp:Label>Job Title</td><td style="width: 250px"><asp:DropDownList ID="ddl_jobtitle" runat="server" Width="200px" TabIndex="42" 
                                                                    CssClass="floatLeft"><asp:ListItem>Select One</asp:ListItem></asp:DropDownList></td><td>Status</td><td><asp:DropDownList ID="ddl_status" runat="server" 
                                                                Width="200px" TabIndex="43" CssClass="floatLeft"><asp:ListItem Value="0">Select One</asp:ListItem><asp:ListItem Value="1">Active</asp:ListItem><asp:ListItem Value="2">Suspended</asp:ListItem><asp:ListItem Value="3">Vacations</asp:ListItem><asp:ListItem Value="4">Inactive</asp:ListItem>
        <asp:ListItem Value="5">Trainning</asp:ListItem>
        </asp:DropDownList></td></tr><tr align="left"><td><asp:Label ID="lb_hired_error" runat="server" CssClass="lberror" Text="*" 
                                                            Visible="False"></asp:Label>
        Training Date</td><td style="width: 250px"><asp:TextBox ID="tb_hired_date" runat="server" Width="195px" TabIndex="44"></asp:TextBox><cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="tb_hired_date"  
                                                                    Format="MM/dd/yyyy" Enabled="True" Animated="False"  CssClass="cal_Theme1"
                                                                    ></cc1:CalendarExtender></td><td>End Date</td><td><asp:TextBox ID="tb_end_date" runat="server" 
                                                                    Width="195px" TabIndex="45"></asp:TextBox><cc1:CalendarExtender ID="tb_end_date_CalendarExtender" runat="server" Format="MM/dd/yyyy"
                                                                TargetControlID="tb_end_date" Enabled="True" Animated="False" PopupPosition="Right"  CssClass="cal_Theme1"
                                                                   ></cc1:CalendarExtender></td></tr><tr align="left"><td>
        Hire Date</td><td style="width: 250px"><asp:TextBox ID="tb_start_contract" runat="server" 
                                                                Width="195px" TabIndex="46"></asp:TextBox><cc1:CalendarExtender ID="tb_start_contract_CalendarExtender" runat="server" Format="MM/dd/yyyy" CssClass="cal_Theme1"
                                                            TargetControlID="tb_start_contract" Enabled="True" Animated="False" 
                                                                PopupPosition="Right" ></cc1:CalendarExtender></td><td>Contract End</td><td><asp:TextBox ID="tb_end_contract" runat="server" 
                                                                Width="195px" TabIndex="47"></asp:TextBox><cc1:CalendarExtender ID="tb_end_contract_CalendarExtender" runat="server" CssClass="cal_Theme1"
                                                            Enabled="True" Format="MM/dd/yyyy" TargetControlID="tb_end_contract" 
                                                                Animated="False" PopupPosition="Right" ></cc1:CalendarExtender></td></tr><tr align="left"><td>
        <asp:Label ID="lb_inmediate_error" runat="server" CssClass="lberror" Text="*" 
            Visible="False"></asp:Label>
        Immediate Sup.</td><td style="width: 250px"><asp:DropDownList ID="ddl_inmediate_superior"  
                                                                runat="server" Width="200px" TabIndex="48" CssClass="floatLeft"></asp:DropDownList></td><td>
            Batch </td><td><asp:TextBox ID="tb_codigoempresa"   runat="server" 
                                                                Width="195px" TabIndex="49"></asp:TextBox></td></tr>
    <tr align="left" style="line-height: 8px"><td>&nbsp;</td><td style="width: 250px">&nbsp;</td><td>&nbsp;</td><td>
        <asp:Label ID="lb_batch" runat="server" CssClass="lberror" 
            Text="Batch already exist" Visible="False"></asp:Label>
        </td></tr><tr align="left"><td colspan="4"><asp:LinkButton ID="bt_save_job" runat="server" class="button_ok" 
                                                                onclick="bt_save_job_Click"  CssClass="button_ok" TabIndex="79"><span>Next</span></asp:LinkButton><asp:LinkButton ID="bt_edit_job" runat="server" class="button_ok" 
                                                                onclick="bt_edit_Click" Text="&lt;span&gt;Edit&lt;/span&gt;" 
                                                                CssClass="button_edit" TabIndex="80" ></asp:LinkButton><asp:LinkButton ID="bt_cancel_job" runat="server" class="button_notok" 
                                                                onclick="bt_cancel_Click" CssClass="button_cancel" Height="30px" 
                                                            TabIndex="81" ><span>Cancel</span></asp:LinkButton></td></tr></tbody></table></td></tr></td></tbody></table></div></div></ContentTemplate></cc1:TabPanel>
                                                  <cc1:TabPanel ID="TabPanel5" runat="server" HeaderText="Salary">
                                            <HeaderTemplate><asp:Label ID="tab_salary" CssClass="tip" runat="server" 
                                                    Visible="False">&nbsp;&nbsp;</asp:Label>Salary</HeaderTemplate>
                                            
<ContentTemplate><div class="column" id="left"></div><div class="clear"></div><div class="portlet"><div class="portlet-header fixed"><img alt="Salary" height="16" src="images/icons/user.gif" width="16" />Monthly Salary</div><div class="portlet-content nopadding"><table width="100%" cellpadding="0" cellspacing="0" id="Table4" summary="Salary"><tbody><tr><td align="left"><table  width="100%" style="text-indent: 5px; line-height: 40px;"><tbody><tr><td  colspan="2" height="30" valign="middle"><asp:Label ID="lb_error_salary" runat="server" CssClass="lberror" Text="Label" 
                                                    Visible="False"></asp:Label></td><td>Total</td><td><asp:TextBox ID="tb_saltotal" runat="server" Enabled="False" Font-Bold="True" 
                                                            ReadOnly="True" Width="200px"></asp:TextBox></td></tr><tr><td>Base Salary</td><td><asp:TextBox ID="tb_base_salary" runat="server" 
                                                                Width="200px" TabIndex="50">0.00</asp:TextBox></td><td>Bonus</td><td><asp:TextBox ID="tb_bonus" runat="server" Width="200px" TabIndex="51">0.00</asp:TextBox></td></tr><tr><td>
    Severance Amount</td><td><asp:TextBox ID="tb_commision" runat="server" Width="200px" TabIndex="52">0.00</asp:TextBox></td><td>
    Severance Bonus</td><td><asp:TextBox ID="tb_other" runat="server" Width="200px" TabIndex="53">0.00</asp:TextBox></td></tr><tr><td>
    Severance Agreement</td><td><asp:TextBox ID="tb_sevagree" runat="server" 
            Width="200px" TabIndex="55" CssClass="floatLeft">0.00</asp:TextBox></td><td>
        IGSS</td><td>
        <asp:TextBox ID="tb_several_amount" runat="server" TabIndex="54" Width="200px">0.00</asp:TextBox>
    </td></tr><tr><td><asp:Label ID="lb_emplotype_error" runat="server" CssClass="lberror" Text="*" 
                                                                Visible="False"></asp:Label>Employment Type</td><td><asp:DropDownList ID="ddl_empoyement" runat="server" Width="200px" 
                                                                TabIndex="56" CssClass="floatLeft"><asp:ListItem>Select One</asp:ListItem></asp:DropDownList><br /></td><td>
            &nbsp;<asp:Label ID="lb_currency_error" runat="server" CssClass="lberror" Text="*" 
                Visible="False"></asp:Label>
            Currency</td><td>
            <asp:DropDownList ID="ddl_moneda" runat="server" CssClass="floatLeft" 
                TabIndex="57" Width="200px">
                <asp:ListItem>Select One</asp:ListItem>
                <asp:ListItem>GTQ</asp:ListItem>
                <asp:ListItem>USD</asp:ListItem>
            </asp:DropDownList>
        </td></tr>
    <tr>
        <td>
            Parking</td>
        <td>
            <asp:CheckBox ID="ch_parking" runat="server" TabIndex="58" />
        </td>
        <td>
            <asp:Label ID="lb_expediente_id_1"  runat="server" Text="0" Visible="False"></asp:Label>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr><td colspan="4">Bank Account Detail <asp:GridView ID="gv_bank" runat="server" 
                                                                Width="100%" AutoGenerateColumns="False"><Columns><asp:TemplateField ><ItemTemplate ><asp:ImageButton ID="bt_editdetail"   OnClick="editdetail" Visible="true" Text="Edit" runat="server" ImageUrl="images/icon_content_small.gif" Width="15px" /><asp:ImageButton ID="bt_savedetail"   OnClick="savedetail" Visible="false" Text="Save" runat="server" ImageUrl="images/save_as.png"  Width="15px" /><asp:ImageButton ID="bt_delete"   OnClick="deletedetail" Visible="true" Text="Delete" runat="server" ImageUrl="images/icon_delete2.png" Width="13px" /></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="ID"><ItemTemplate><asp:Label ID="lb_id" runat="server"  Text='<%# Eval("ID")%>' Visible="false"
                                                                            Width="50px" /></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Account #"><ItemTemplate><asp:TextBox ID="tb_accnum" runat="server"  Text='<%# Eval("Account#")%>' Enabled="false"
                                                                            Width="150px" /></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Bank"><ItemTemplate><asp:DropDownList ID="ddl_bankdetail" runat="server" DataSource='<%#getbancos() %>'  DataTextField="nombre"  DataValueField="id" selectedvalue='<%# Eval("Bank") %>' Enabled="false" Width="225px"></asp:DropDownList></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Type Account"><ItemTemplate><asp:DropDownList ID="ddl_typeacc" runat="server" DataSource='<%# getTypeAccBankGT() %>'  DataTextField="nombre"  DataValueField="id"   selectedvalue='<%# Eval("Type Account") %>'   Enabled="false"  Width="225px"></asp:DropDownList></ItemTemplate></asp:TemplateField></Columns></asp:GridView><br /><asp:LinkButton ID="Button1" runat="server"  
                                                                Text="&lt;span&gt;Add Bank Account&lt;/span&gt;" CssClass="button"></asp:LinkButton><cc1:ModalPopupExtender ID="Button1_ModalPopupExtender" runat="server" 
                                                                DynamicServicePath="" Enabled="True" TargetControlID="Button1" PopupControlID="Panel1" BackgroundCssClass="FondoAplicacion"></cc1:ModalPopupExtender><asp:Panel ID="Panel1" runat="server"><table style="width: 100%" class="CajaDialogo"><tr><td colspan="4">
        New Employee Bank Account&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lb_bankaccerror" runat="server" CssClass="lberror" Text="Label" 
            Visible="False"></asp:Label>
        </td></tr><tr><td style="width: 80px">Bank</td><td style="width: 192px"><asp:DropDownList ID="ddl_bankpopup" runat="server" 
                                                                                DataSource="<%# getbancos() %>"  DataTextField="nombre"  
                                                                                DataValueField="id" Width="225px"  ></asp:DropDownList></td><td >Account #</td><td><asp:TextBox ID="tb_accpopup" runat="server" Width="200px"></asp:TextBox></td></tr><tr><td style="width: 80px">Type</td><td style="width: 192px"><asp:DropDownList ID="cb_typepopup" runat="server" 
                                                                                DataSource='<%# getTypeAccBankGT() %>'  DataTextField="nombre"  
                                                                                DataValueField="id" Width="225px"></asp:DropDownList></td><td >&#160;</td><td>&#160;</td></tr><tr><td colspan="4"><asp:LinkButton ID="Button2" runat="server" onclick="Button2_Click" 
                                                                                CssClass="button_add" ><span>Add</span></asp:LinkButton><asp:LinkButton ID="bt_cancelpopup" runat="server" onclick="bt_cancelpopup_Click" 
                                                                                 CssClass="button_cancel"><span>Cancel</span></asp:LinkButton></td></tr></table></asp:Panel></td></tr><tr><td>&nbsp;</td><td><p>&nbsp;</p></td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td colspan="4"><asp:LinkButton ID="bt_save_salary" runat="server" class="button_ok" 
                                                                onclick="bt_save_salary_Click" CssClass="button_ok" TabIndex="82"><span>Next</span></asp:LinkButton><asp:LinkButton ID="bt_edit_salary" runat="server" class="button_ok" 
                                                                onclick="bt_edit_Click" CssClass="button_edit" TabIndex="83"><span>Edit</span></asp:LinkButton><asp:LinkButton ID="bt_cancel_salary" runat="server" class="button_add" 
                                                                CssClass="button_cancel" TabIndex="84"><span>Cancel</span></asp:LinkButton></td></tr></tbody></table></td></tr></tbody></table></div></div></ContentTemplate></cc1:TabPanel>
                                                  <cc1:TabPanel ID="TabPanel6" runat="server" HeaderText="TabPanel6">
                                              <HeaderTemplate><asp:Label ID="tab_doc" CssClass="tip" runat="server" Visible="false">&nbsp;&nbsp;</asp:Label>Documents</HeaderTemplate>                                            
                                               



<ContentTemplate><div class="column" id="Div2"><cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
        CombineScripts="True"></cc1:ToolkitScriptManager></div><div class="clear"></div><div class="portlet"><div class="portlet-header fixed"><img alt="Emergency Contacts" height="16" src="images/icons/user.gif" 
        width="16" />Documents<asp:Label ID="lb_error_doc" runat="server" 
                                                       CssClass="lberror" Text="Label" Visible="False"></asp:Label></div><div class="portlet-content nopadding"><table width="100%" cellpadding="0" cellspacing="0" id="Table7" 
                                                            style="text-indent: 5px; line-height: 40px;"><tbody><tr><td><div><asp:GridView ID="gv_documents" runat="server"
                                                                Width="100%" AutoGenerateColumns="False" 
                                                                    onrowdatabound="gv_documents_RowDataBound" ><Columns><asp:TemplateField><ItemTemplate><asp:ImageButton ID="bt_deletedocument"   OnClick="deletedocument" Visible="true" Text="Delete" runat="server" ImageUrl="images/eraser-icon.png" Width="18px" /></ItemTemplate></asp:TemplateField><asp:TemplateField><ItemTemplate><asp:Label ID="lb_iddoc" runat="server"  Text='<%# Eval("ID")%>' Visible="false" Width="2px" /><asp:Label ID="lb_iddocemp" runat="server"  Text='<%# Eval("doc_id")%>' Visible="false" Width="2px" /><asp:Label ID="lb_obligatorio" runat="server"  Text='<%# Eval("obligatorio")%>' Visible="true" Width="2px" /></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Document"><ItemTemplate><asp:DropDownList ID="ddl_document" runat="server" DataSource='<%#getDocuments() %>'  DataTextField="nombre"  DataValueField="id" selectedvalue='<%# Eval("id") %>' Enabled="true" Width="200px"></asp:DropDownList></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="Browse"><ItemTemplate><asp:FileUpload ID="fu_document" runat="server"  Enabled="true" Width="300px"></asp:FileUpload></ItemTemplate></asp:TemplateField><asp:TemplateField><ItemTemplate><asp:Label ID="lb_path" runat="server"  Text='<%# Eval("path")%>' Visible="false" Width="2px" /></ItemTemplate></asp:TemplateField><asp:TemplateField><ItemTemplate><asp:ImageButton ID="ln_view" runat="server" Visible="false"  ImageUrl="~/pim/images/icon-document2.png"  Width="25px" /></ItemTemplate></asp:TemplateField></Columns></asp:GridView></div></td></tr><tr><td><asp:Panel ID="pnlAddDoc" runat="server" CssClass="CajaDialogo" 
                                                                    Width="533px"><table ID="Table8" align="center" cellpadding="0" cellspacing="0" 
                                                                        summary="Delete Employee" width="500"><thead><tr align="center"><th scope="col" style="text-align: center">ADD DOCUMENT</th></tr></thead><tbody><tr><td align="center"><table width="90%"><tr><td style="text-align: center" colspan="2"><asp:Label ID="Label2" runat="server" CssClass="lberror" Visible="False"></asp:Label></td></tr><tr><td style="text-align: center"><asp:DropDownList ID="ddl_newdoc" runat="server" Width="200px" 
                                                                                                    DataSource='<%# getDocuments() %>'  DataTextField="nombre"  DataValueField="id"></asp:DropDownList></td><td style="text-align: center"><asp:FileUpload ID="fu_newdoc" runat="server" Width="200px" /></td></tr><tr><td style="text-align: center">&#160;</td><td style="text-align: center">&#160;</td></tr><tr align="right"><td align="center"><asp:LinkButton ID="lnk_addnewdoc" runat="server" class="button_ok" 
                                                                                                    onclick="lnk_addnewdoc_Click"><span>Add</span></asp:LinkButton></td><td align="center"><asp:LinkButton ID="lnk_cancel_newdoc" runat="server" class="button_notok" 
                                                                                                    CssClass="button_cancel" OnClick="lnk_cancel_newdoc_Click"><span>CANCEL</span></asp:LinkButton></td></tr></table></td></tr></tbody></table></asp:Panel></td></tr><tr><td>&nbsp;</td></tr><tr><td><asp:LinkButton ID="bt_save_doc" runat="server" class="button_ok" 
                                                            onclick="bt_save_doc_Click" CssClass="button_ok" TabIndex="85"><span>Finish</span></asp:LinkButton><asp:LinkButton ID="bt_edit_doc" runat="server" class="button_ok" 
                                                            onclick="bt_edit_Click" CssClass="button_edit" TabIndex="86" ><span>Edit</span></asp:LinkButton><asp:LinkButton ID="bt_cancel_doc" runat="server" class="button_notok" 
                                                            onclick="bt_cancel_Click" CssClass="button_cancel" TabIndex="87"  ><span>Cancel</span></asp:LinkButton><asp:LinkButton ID="bt_upload_doc" runat="server" class="button_notok" 
                                                            CssClass="button_upload" OnClick="bt_upload_doc_Click" TabIndex="88"><span>Upload</span></asp:LinkButton><asp:LinkButton ID="lnk_add_doc" runat="server" CssClass="button_add" 
                                                            Height="30px" Width="80px" TabIndex="89"><span>Add Doc</span></asp:LinkButton><cc1:ModalPopupExtender ID="lnk_add_doc_ModalPopupExtender" runat="server" PopupControlID="pnlAddDoc"
                                                            DynamicServicePath="" Enabled="True" TargetControlID="lnk_add_doc" BackgroundCssClass="FondoAplicacion"></cc1:ModalPopupExtender></td></tr></td></tr></tbody></table></div></div></ContentTemplate>

                                      



</cc1:TabPanel>
                                              </cc1:TabContainer>
                                          </td>
                                      </tr>
                                      <tr align="center">
                                          <td align="center">
                                              <asp:LinkButton ID="bt_save" runat="server" onclick="bt_save_Click" 
                                    CssClass="button_ok"  Visible="False" TabIndex="80" ><span>Save</span></asp:LinkButton>
                                              <%--***************************************************************************************************--%>
                                              <asp:LinkButton ID="bt_edit" runat="server" onclick="bt_edit_Click" 
                                     Visible="False" CssClass="button_edit" TabIndex="81" ><span>Edit</span></asp:LinkButton>
                                              <asp:LinkButton ID="bt_delete" runat="server" onclick="bt_delete_Click" 
                                    CssClass="button_cancel" TabIndex="82" Visible="False"><span>Delete</span></asp:LinkButton>
                                              <cc1:modalpopupextender ID="HyperLink1_ModalPopupExtender" runat="server" BackgroundCssClass="FondoAplicacion"
              DynamicServicePath="" Enabled="True" TargetControlID="bt_delete"  
              PopupControlID="pnlDelete" >
                                              </cc1:modalpopupextender>
                                <%--***************************************************************************************************--%>
                                              <asp:LinkButton ID="LinkButton4" runat="server" ForeColor="White" TabIndex="85" 
                                                 >.</asp:LinkButton>
                                              <cc1:ModalPopupExtender ID="LinkButton4_ModalPopupExtender" runat="server"  BackgroundCssClass="FondoAplicacion"
                                    DynamicServicePath="" Enabled="True" TargetControlID="LinkButton4" PopupControlID="Panel2">
                                              </cc1:ModalPopupExtender>
                                              <asp:LinkButton ID="ln_back" runat="server" CssClass="button_cancel" 
                                                  onclick="ln_back_Click" TabIndex="84" Visible="False" ><span>  Back  </span></asp:LinkButton>
                                              &nbsp;</td>
                                      </tr>
                                  </table>
                              </td>
                          </tr>
                      </tbody>
                  </table>
                   </div>
      </div>
<!--  END #PORTLETS -->  
   </div>
    <div class="clear"> </div>
     
    <asp:Panel ID="pnlDelete" runat="server" CssClass="CajaDialogo" Width="333px" 
            Visible="False">
        <table width="300" cellpadding="0" cellspacing="0"  id="Table5" 
            summary="Delete Employee" align="center">
        <thead>
            <tr align="center">
                <th scope="col" style="text-align: center">PERSONAL INFO</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td align="center">
                    <table width="90%">
                    <tr>
                        <td style="text-align: center">&nbsp;</td>
                    </tr>
                        <tr>
                                <td style="text-align: center">

                                    Are you shure you want to delete?</td>
                            </tr>
                        <tr>
                            <td style="text-align: center">
                                &nbsp;</td>
                        </tr>
                        <tr align="right">
                            <td align="center">
                                <asp:LinkButton ID="LinkButton1" runat="server" class="button_ok" 
                                    onclick="LinkButton1_Click" TabIndex="86"><span>OK</span></asp:LinkButton>
                                <asp:LinkButton ID="LinkButton3" runat="server" class="button_notok" 
                                    CssClass="button_cancel" onclick="LinkButton3_Click" TabIndex="87"><span>CANCEL</span></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                    </td>
            </tr>
            </tbody>
            </table>
            </asp:Panel>

        <div class="clear"></div>    
        <asp:Panel ID="Panel2" runat="server" CssClass="CajaDialogo" Width="433px" 
            Visible="true">
        <table width="400" cellpadding="0" cellspacing="0"  id="Table6" 
                    summary="Choose Location" align="center">
        <thead>
            <tr align="center">
                <th scope="col" style="text-align: center">LOCATION INFO</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td align="center">
                    <table width="90%">
                    <tr >
                        <td colspan="4" style="text-align: center">&nbsp;</td>
                    </tr>
                        <tr>
                            <td colspan="4" style="text-align: center">
                                Choose One</td>
                        </tr>
                        <tr>
                            <td colspan="4" style="text-align: center">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                &nbsp;</td>
                        </tr>
                        <tr align="right">
                                <td >
                                    
                                    <asp:LinkButton ID="lnk_gua" runat="server" class="button_ok" 
                                        onclick="lnk_gua_Click" CssClass="bandera_gua" TabIndex="88"></asp:LinkButton>
                                      
                                </td>
                                
                                <td>
                                    &nbsp;</td>
                                
                                <td>
                                    <asp:LinkButton ID="lnk_usa" runat="server" class="button_ok" 
                                        CssClass="bandera_usa" onclick="lnk_usa_Click" TabIndex="89"></asp:LinkButton>
                                </td>
                                <td>
                                    <asp:LinkButton ID="lnk_mx" runat="server" class="button_ok" 
                                        CssClass="bandera_mx" onclick="lnk_mx_Click" TabIndex="90"></asp:LinkButton>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                                <td colspan="2">
                                    <asp:LinkButton ID="LinkButton2" runat="server" class="button_add" 
                                        onclick="LinkButton2_Click" CssClass="button_cancel" TabIndex="91"><span>CANCEL</span></asp:LinkButton>
                                </td>
                        </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                        </tr>
                    </table>
                    </td>
            </tr>
            </tbody>
            </table>
            </asp:Panel>
  </div>
  
  
  
    </div>
</asp:Content>

